package com.hzq.htest.ui.login.contract;

import com.hzq.htest.ui.login.bean.LoginfoBean;

import kstar.mycommon.base.BaseModel;
import kstar.mycommon.base.BasePresenter;
import kstar.mycommon.base.BaseView;
import okhttp3.RequestBody;
import rx.Observable;

/**
 * Created by ${GuoZhaoHui} on 2017/8/31.
 * email:guozhaohui628@gmail.com
 */

public interface LoginContract {

    interface Model extends BaseModel {

        //获取登陆信息
        Observable<LoginfoBean> getLoginInfo(RequestBody requestBody);

    }

    interface View extends BaseView {

        //返回登陆信息
        void returnLoginInfo(LoginfoBean loginInfo);


    }

    abstract  class Presenter extends BasePresenter<View,Model> {

        //订阅登陆请求
        public abstract void subLoginDataRequest();

    }



}
